from typing import Optional
from sqlalchemy.exc import IntegrityError
from sqlmodel import Session
from .base import CRUDBase
from app import models
from app.core.security import get_password_hash

class EmailAlreadyExistsError(Exception):
    pass


class UserProfile(CRUDBase[models.UserProfileUpdateMe, models.UserProfileUpdateMe, models.UserProfileUpdateMe]):
    def __init__(self, db: Session):
        super().__init__(db)
        self.model = models.UserProfileUpdateMe

    
